{extend name="base"}
{block name="title"}管理员登录{/block}
{block name="head"}
<style>
#Captcha{width:80px;}
#CaptchaImg{position:absolute; right:0; top:10px; width: 140px; cursor:pointer;}
</style>
{/block}
{block name="body"}
<body class="loginbody">
  <form method="POST">{if condition="!$NORM"}<input type="hidden" name="mode" value="{$MODE}" />{/if}
    <div style="width:100%; height:100%; min-width:300px; min-height:260px;"></div>
    <div class="login-wrap">
      <div class="login-logo">LOGO</div>
      <div class="login-form">
        <div class="col">
          <input type="text" id="UserName" name="UserName" class="login-input" placeholder="管理员账号" title="管理员账号" autocomplete="off" />
          <label class="icon" for="UserName"><i class="iconfont icon-user"></i></label>
        </div>
        <div class="col">
          <input type="password" id="PassWord" name="PassWord" class="login-input" placeholder="管理员密码" autocomplete="off" />
          <label class="icon" for="PassWord"><i class="iconfont icon-key"></i></label>
        </div>
        <!--
        <div class="col">
          <input type="password" id="Captcha" name="Captcha" class="login-input" placeholder="验证码" autocomplete="off" />
          <label class="icon" for="Captcha"><i class="iconfont icon-key"></i></label>
          <img id="CaptchaImg" src="{:url('public/captcha', '', 'png')}" />
        </div>
        -->
        <div class="col">
          <input id="btnSubmit" class="login-btn" type="submit" value="登 录" />
        </div>
      </div>
      <div class="login-tips"><i class="iconfont icon-info"></i><p id="msgtip" runat="server">请输入用户名和密码</p></div>
    </div>
    <div class="copy-right">
      <p>版权所有 XXX Copyright © 2017 - {:date('Y')} xxx.net Inc. All Rights Reserved.</p>
    </div>{:token()}
  </form>
<script>
$(function () {
  var URL_CAPTCHA = "{:url('public/captcha', '', 'png')}";
  $("#CaptchaImg").click(function () {
    var time = new Date();
    var sec = time.getTime();
    var img = $(this);
    img.attr("src", URL_CAPTCHA + "?_=" + sec);
  });
});
</script>
</body>
{/block}